package zju.lzy.iotclient;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class YmlTest {
    public static void main(String[] args) {
        Properties props = new Properties();
        try {
            props.load(new FileInputStream("src/main/resources/test.yml"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println(props.getProperty("h1.h2"));
        props.list(System.out);
    }
}
